import React from 'react'
import { Outlet, useLocation } from 'react-router-dom'
import Myfooter from './components/Myffoter/Index'
// import Myfoooter from './components/Myfoooter/Index'
function App() {
  const { pathname } = useLocation()
  const showTabbar = pathname.startsWith('/home') || pathname.startsWith('/class')
  // const showTabbar2=pathname.startsWith('/home2')|| pathname.startsWith('/wei') || pathname.startsWith('/message') || pathname.startsWith('/my')

  return (
    <div >
      <Outlet/>
      {showTabbar && <Myfooter />}
      {/* {showTabbar2 && <Myfoooter />} */}
    </div>
  )
}

export default App
